import http from "@/api/http";

// 分页查询轮播图
export function getBannerPage(query: object) {
  return http.get({
    url: "/content/banner/page",
    params: query
  });
}

// 获得轮播图
export function getBanner(bannerId: number) {
  return http.get({
    url: "/content/banner/" + bannerId
  });
}

// 保存轮播图
export function saveBanner(obj: object) {
  return http.post({
    url: "/content/banner",
    data: obj
  });
}

// 修改轮播图
export function updateBanner(obj: object) {
  return http.put({
    url: "/content/banner",
    data: obj
  });
}

// 删除轮播图
export function delBanner(bannerId: any) {
  return http.delete({
    url: "/content/banner/" + bannerId
  });
}
